package com.siloam.module;

public class Role {
	
	/**
	 * 角色范围：所有人
	 */
	public static final int SCOPE_ALL = 1;
	
	/**
	 * 角色范围：指定人员
	 */
	public static final int SCOPE_SPECIAL = 2;
	
	private int id;
	private String name;
	private int scope;
	private String remark;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getScope() {
		return scope;
	}
	public void setScope(int scope) {
		this.scope = scope;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getScopeText(){
		if(scope == SCOPE_ALL){
			return "所有人";
		} else {
			return "指定人员";
		}
	}
	
}
